package com.example.ecas.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;

import java.util.Objects;

@TableName("dis_case")
public class DisRcase {
//    @MppMultiId
    @TableField("dis_id")
    int disId;
//    @MppMultiId
    @TableField("case_id")
    int caseId;

    public int getDisId() {
        return disId;
    }

    public void setDisId(int disId) {
        this.disId = disId;
    }

    public int getCaseId() {
        return caseId;
    }

    public void setCaseId(int caseId) {
        this.caseId = caseId;
    }

    @Override
    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (obj == null || getClass() != obj.getClass()) {
            return false;
        }
        DisRcase disRcase = (DisRcase) obj;
        return caseId == disRcase.caseId;
    }

    @Override
    public int hashCode() {
        return Objects.hash(caseId);
    }

    @Override
    public String toString() {
        return "DisRcase{" +
                "caseId=" + caseId +
                ", disId='" + disId + '\'' +
                '}';
    }
}
